﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Work8
{
    class Refclass
    {
        public bool Judge(ref int num)  // ref 为引用参数，num为实参
        {
            if (num % 5 ==0)
            {
                num = 50;  //这里是对形参num赋值
                return true;
            }
            return false;
        }

        public void JudgeAth(string str)
        {
            Console.WriteLine(str);
            str = "66666";  //对形参赋值后未被调用，运行时将被自动回收
        }

    }
}
